package com.longbo.leaf.portal.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HtmlController {
    @RequestMapping("/index.html")
    public String index() {
        // 返回的字符串是视图名
        // SpringBoot默认配置了前缀是 /templates/，配置配置了后缀是 .html
        // 则“前缀+返回值（视图名）+后缀” = /templates/index.html
        return "index";
    }

    @RequestMapping("/login.html")
    public String login() {
        return "login";
    }

    @RequestMapping("/register.html")
    public String register() {
        return "register";
    }

    @RequestMapping("/goods_test.html")
    public String goods_test_html() {
        return "goods_test";
    }

}
